//
//  DolphinViewController.h
//  Dolphin
//
//  Created by Handymood on 11-6-22.
//  Copyright 2011 __Hanydmood__. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "MediaBook.h"
#import "Door.h"
#import "Three60Map.h"
#import "Part6Wrapper.h"
#import "SimpleAudioPlayer.h"
#import "AsyncSocket.h"
#import "IpInputViewController.h"

@class MediaBook;
@class Door;
@class Three60Map;
@class Part6Wrapper;
@class SimpleAudioPlayer;

@interface DolphinViewController : UIViewController <UIActionSheetDelegate, AsyncSocketDelegate>
{
    MediaBook *mediaBook;
    MediaBook *menu;
    //MediaBook *bubble;
    UIImageLayer *bubble;
    UIImageLayer *exitButton;
    Part6Wrapper *part6Wrapper;
    
    UIInterfaceOrientation curInterfaceOrientation;
    
    UIWebView *uiWebView;
    UIView *theBlackBg;
    Door *theDoor;
    Three60Map *_360Map;

    int count;
    NSTimer *objQueMagTimer;
    
    UIImageView *loadingPage;
    UIImageView *threeLoadingPage;
    UIImageView *threeDLoading;
    int cur_id;
    BOOL become_active_flag;
    
    SimpleAudioPlayer *sndEffect;
    SimpleAudioPlayer *bgSnd;
    
    AsyncSocket *            _socket;
    
    IpInputViewController *                 _inputVC;
}

-(void) bookGen;
-(void) notificationSelector:(NSNotification *) notification;

- (void) connectToSocket;

@end
